<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>升学与公考</title>
    <%@include file="/WEB-INF/views/include/weixinhead.jsp" %>
</head>
<body>
<!--升学与公考-->
<div data-role="page" id="entranceExamination" class="page" >
    <div data-role="header" class="header header-1">升学与公考
        <span class="return-btn"><a href="/f/campusinfo/homepage" data-ajax="false" data-transition="slideup"><img src="${ctxStatic}/modules/wechat/css/images/yuanjiaojuxing25.png" alt=""></a></span>
    </div>
    <div role="main" class="content-1">
        <div class="msg-content">
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $.ajax({
            url:interfaceUpStudy+generateMixed(9),
            type:'post',
            success:function(data){
                // console.log(data);
                for(var i=0;i<data.page.length;i++){
                    switch (data.page[i].upName){
                        case "出国":
                            $(".msg-content").eq(0).append("   <a href=\"/f/campusinfo/studyAbroad"+generateMixed(9)+"\" data-ajax=\"false\">\n" +
                                "                <div class=\"msg-div\">\n" +
                                "                    <div class=\"msg-content-left\">\n" +
                                "                        <div class=\"msg-div-title\">出国</div>\n" +
                                "                        <div class=\"msg-div-text-special\">"+data.page[i].upforShort+"</div>\n" +
                                "                    </div>\n" +
                                "                    <img onerror=\"this.onerror='';src='${ctxStatic}/modules/wechat/css/images/sx-img.png'\" src=\"${imgIp}"+data.page[i].upImg+"\" alt=\"\">\n" +
                                "                </div>\n" +
                                "            </a>");
                            break;
                        case "考研":
                            $(".msg-content").eq(0).append("<a href=\"#"+"\" data-ajax=\"false\" onclick=\"alert('功能开发中，敬请期待！');\">\n" +
                                "                <div class=\"msg-div\">\n" +
                                "                    <div class=\"msg-content-left\">\n" +
                                "                        <div class=\"msg-div-title\">考研</div>\n" +
                                "                        <div class=\"msg-div-text-special\">"+data.page[i].upforShort+"</div>\n" +
                                "                    </div>\n" +
                                "                    <img onerror=\"this.onerror='';src='${ctxStatic}/modules/wechat/css/images/sx-img.png'\" src=\"${imgIp}"+data.page[i].upImg+"\" alt=\"\">\n" +
                                "                </div>\n" +
                                "            </a>");
                            break;
                        case "公务员考试":
                            $(".msg-content").eq(0).append("   <a href=\"/f/campusinfo/civilServiceExamination"+generateMixed(9)+"\" data-ajax=\"false\">\n" +
                                "                <div class=\"msg-div\">\n" +
                                "                    <div class=\"msg-content-left\">\n" +
                                "                        <div class=\"msg-div-title\">公务员考试</div>\n" +
                                "                        <div class=\"msg-div-text-special\">"+data.page[i].upforShort+"</div>\n" +
                                "                    </div>\n" +
                                "                    <img onerror=\"this.onerror='';src='${ctxStatic}/modules/wechat/css/images/sx-img.png'\" src=\"${imgIp}"+data.page[i].upImg+"\" alt=\"\">\n" +
                                "                </div>\n" +
                                "            </a>");
                            break;
                    }
                }
            }
        })
    })
</script>
</body>
</html>